﻿#pragma once

#include "Render/PreRender/PreRenderWidgets.h"

class CVulkanWindow;

class CVulkanCircleWidget
{
public:
    void BindData(const SPreRenderCircleWidget& InData);
   
    void Draw(vk::CommandBuffer CommandBuffer);

protected:
    SPreRenderCircleWidget Data;

};

//绘制所有的圆形控件
class CVulkanCircleWidgets
{
public:
    ~CVulkanCircleWidgets();

    void PreProcess(const TVector<SPreRenderCircleWidget>& AllCircleData);

    void CreateSelfRecordTasks(CVulkanWindow *InRenderSurface
        ,SRenderCommandBuffers &OutCmdBuffersToExecute);
protected:
    TVector<CVulkanCircleWidget> CircleWidgets;

    vk::CommandBuffer CommandBuffer;
};
